<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@include file="../common/head.jsp" %>
<div class="right">
	<div class="location">
		<strong>你现在所在的位置是:</strong>
		<span>用户管理页面</span>
	</div>
	<div class="search">
		<form>
			<input name="meth
			od" value="query" class="input-text" type="hidden">
			<span>用户名：</span>
			<input name="queryname" id="queryname" class="input-text" type="text"/>
			<span>用户角色：</span>
			<select name="queryUserRole" id="queryUserRole">
				<option value="0">--请选择--</option>
<%--				<option selected="selected" value="${role.id}">${role.roleName}</option>--%>
			</select>

			<input type="hidden" name="pageIndex" value="1"/>
			<input value="查询" type="button" onclick="getUserList(1,document.getElementById('queryUserRole').value,document.getElementById('queryname').value)" id="searchbutton">
			<a href="statics/jsp/user/userAdd.jsp">添加用户</a>
		</form>
	</div>
	<!--用户-->
	<table class="providerTable" cellpadding="0" cellspacing="0">
		<thead>
		<tr class="firstTr">
			<th width="10%">用户编码</th>
			<th width="20%">用户名称</th>
			<th width="10%">性别</th>
			<th width="10%">年龄</th>
			<th width="10%">电话</th>
			<th width="10%">用户角色</th>
			<th width="30%">操作</th>
		</tr>
		</thead>
		<tbody id="userList">
		<%--        <tr>--%>
		<%--            <td><span>a</span></td>--%>
		<%--            <td><span>a</span></td>--%>
		<%--            <td><span>&lt;%&ndash;男&ndash;%&gt;女</span></td>--%>
		<%--            <td><span>a</span></td>--%>
		<%--            <td><span>a</span></td>--%>
		<%--            <td><span>a</span></td>--%>
<%--		            <td><span>--%>
<%--		                    <a class="viewUser" href="javascript:" userid=${user.id } username=${user.userName }><img--%>
<%--		                        src="statics/images/read.png" alt="查看" title="查看"/>--%>
<%--		                    </a>--%>
<%--		                </span>--%>
<%--		                <span>--%>
<%--		                    <a class="modifyUser" href="javascript:" userid=${user.id } username=${user.userName }><img--%>
<%--		                        src="statics/images/xiugai.png" alt="修改" title="修改"/></a>--%>
<%--		                </span>--%>
<%--		                <span>--%>
<%--		                    <a class="deleteUser" href="javascript:" userid=${user.id } username=${user.userName }><img--%>
<%--		                        src="statics/images/schu.png" alt="删除" title="删除"/></a>--%>
<%--		                </span>--%>
<%--		            </td>--%>
		<%--        </tr>--%>
		</tbody>
	</table>
	<div class="page-bar">
		<ul class="page-num-ul clearfix">
			<li>共<span id="total"></span>条记录&nbsp;&nbsp; 当前<span id="currentPage">1</span>页/<span id="totalPage">10</span>页</li>
			<a href="javascript:getUserList(1,document.getElementById('queryUserRole').value,document.getElementById('queryname').value);">首页</a>
			<a href="javascript:getUserList(document.getElementById('currentPage').innerHTML-1,document.getElementById('queryUserRole').value,document.getElementById('queryname').value);">上一页</a>
			<a href="javascript:getUserList(Number(document.getElementById('currentPage').innerHTML)+1,document.getElementById('queryUserRole').value,document.getElementById('queryname').value);">下一页</a>
			<a href="javascript:getUserList(document.getElementById('totalPage').innerHTML,document.getElementById('queryUserRole').value,document.getElementById('queryname').value);">最后一页</a>
		</ul>
		<span class="page-go-form"><label>跳转至</label>
	     <input type="text" name="inputPage" id="inputPage" class="page-key"/>页
	     <button type="button" class="page-btn"
				 onClick="getUserList(document.getElementById('inputPage').value)">GO</button>
	</span>
	</div>



	<input type="hidden" id="totalPageCount" value="${totalPageCount}"/>
	<%--    <c:import url="rollpage.jsp">--%>
	<%--        <c:param name="totalCount" value="${totalCount}"/>--%>
	<%--        <c:param name="currentPageNo" value="${currentPageNo}"/>--%>
	<%--        <c:param name="totalPageCount" value="${totalPageCount}"/>--%>
	<%--    </c:import>--%>
</div>
</section>

<!--点击删除按钮后弹出的页面-->
<div class="zhezhao"></div>
<div class="remove" id="removeUse">
	<div class="removerChid">
		<h2>提示</h2>
		<div class="removeMain">
			<p>你确定要删除该用户吗？</p>
			<a href="#" id="yes">确定</a>
			<a href="#" id="no">取消</a>
		</div>
	</div>
</div>

<%@include file="../common/foot.jsp" %>
<script type="text/javascript" src="statics/js/userlist.js"></script>
